package io.renren.generator.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.generator.dao.EduUserExtendDao;
import io.renren.generator.entity.EduUserExtendEntity;
import io.renren.generator.service.EduUserExtendService;
import io.renren.utils.PageUtils;
import org.springframework.stereotype.Service;

import java.util.Map;



@Service("eduUserExtendService")
public class EduUserExtendServiceImpl extends ServiceImpl<EduUserExtendDao, EduUserExtendEntity> implements EduUserExtendService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<EduUserExtendEntity> page = this.page(
                new Query<EduUserExtendEntity>().getPage(params),
                new QueryWrapper<EduUserExtendEntity>()
        );

        return new PageUtils(page);
    }

}